package com.ruoyi.system.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.system.domain.AcIndex;
import com.ruoyi.system.service.IAcIocService;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.AcWorkOrder;
import com.ruoyi.system.service.IAcWorkOrderService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import redis.clients.jedis.Jedis;

/**
 * 大屏Controller
 *
 * @author ruoyi
 * @date 2025-03-04
 */
@RestController
@RequestMapping("/system/ioc")
@Anonymous
public class AcIocController extends BaseController {
    @Autowired
    private IAcIocService acIocService;


    @ApiOperation("房产概况")
    @GetMapping(value = "/getAssetInfo")
    public AjaxResult getAssetInfo(AcIndex acIndex)
    {
        return success(acIocService.getAssetInfo(acIndex));
    }


    @ApiOperation("房产状态管理")
    @GetMapping(value = "/getAssetStatus")
    public AjaxResult getAssetStatus(AcIndex acIndex)
    {
        return success(acIocService.getAssetStatus(acIndex));
    }

    @ApiOperation("房产行政区划管理")
    @GetMapping(value = "/getAssetDistrict")
    public AjaxResult getAssetDistrict(AcIndex acIndex)
    {
        return success(acIocService.getAssetDistrict(acIndex));
    }


    @ApiOperation("产权归属情况")
    @GetMapping(value = "/getAssetBelong")
    public AjaxResult getAssetBelong(AcIndex acIndex)
    {
        return success(acIocService.getAssetBelong(acIndex));
    }

    @ApiOperation("租金到期预警")
    @GetMapping(value = "/getAssetRent")
    public AjaxResult getAssetRent(AcIndex acIndex)
    {
        return success(acIocService.getAssetRent(acIndex));
    }


    @ApiOperation("合同到期预警")
    @GetMapping(value = "/getAssetCredit")
    public AjaxResult getAssetCredit(AcIndex acIndex)
    {
        return success(acIocService.getAssetCredit(acIndex));
    }
}
